package com.lovo.sys.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.Value;

import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
@TableName("supply")
@ApiModel(value = "供货订单实体",description = "供货订单实体")
public class SupplyBean {
    @TableId(value = "pk_supplyId",type = IdType.AUTO)
    @ApiModelProperty(value = "供货订单主键")
    private long supplyId;

    @TableField("s_idNum")
    @ApiModelProperty(value = "供货订单编号")
    private String idNum;

    @TableField("s_suppliersName")
    @ApiModelProperty(value = "供货商名")
    private String suppliersName;

    @TableField("s_orderDate")
    @ApiModelProperty(value="下单时间")
    private LocalDate orderDate;

    @TableField("s_orderStatus")
    @ApiModelProperty(value = "订单状态 0-供货中，1-已完成，2-未完成")
    private int orderStatus;
    @ApiModelProperty(value="总订单数量")
    @TableField("s_totalNum")
    private  int totalNum;
}
